/*
 * @Author: Neko
 * @Date: 2021-04-09 10:21:33
 * @LastEditTime: 2021-06-08 17:46:33
 * @LastEditors: Neko
 */
import request from '@/api/request'

// 获取店铺商品一级分类
export async function getGoodsCategory1(params) {
	return request('/quickPurchaseV1/getGoodsCategory1', params)
}

// 获取店铺商品2级分类
export async function getGoodsCategory2ByGcId(params) {
	return request('/quickPurchaseV1/getGoodsCategory2ByGcId', params)
}

// 获取商品分页信息
export async function getGoodsPagerInfo(params) {
	return request('/quickPurchaseV1/getGoodsPagerInfo', params)
}

// 获取商品分类信息
export async function getGoodsCategory(params) {
	return request('/quickPurchaseV1/getGoodsCategory', params)
}

export const getAttributeList = params => (
	request('/brand/attribute/list', params, 'POST')
)

export const getBrandList = params => (
	request('/brand/list', params, 'POST')
)